package eatpoopyoucat;

import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class EpycPicture {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String imageUrl;
    
    @Persistent
    private Key gameID;
    
    public EpycPicture(String imageUrl, Key gameID) {
    	this.setImageUrl(imageUrl);
    	this.setGameID(gameID);
    }

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Key getKey() {
		return key;
	}

	public void setGameID(Key gameID) {
		this.gameID = gameID;
	}

	public Key getGameID() {
		return gameID;
	}    
    
}
